package com.bwie.alipay;

import java.io.FileWriter;
import java.io.IOException;

/* *
 *类名：AlipayConfig
 *功能：基础配置类
 *详细：设置帐户有关信息及返回路径
 *修改日期：2024-08-25
 *说明：
 *以下代码只是为了方便商户测试而提供的样例代码，商户可以根据自己网站的需要，按照技术文档编写,并非一定要使用该代码。
 *该代码仅供学习和研究支付宝接口使用，只是提供一个参考。
 */

public class AlipayConfig {

//↓↓↓↓↓↓↓↓↓↓请在这里配置您的基本信息↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓

    // 应用ID,您的APPID，收款账号既是您的APPID对应支付宝账号
    public static String app_id = "2021000147682253";

    // 商户私钥，您的PKCS8格式RSA2私钥
    public static String merchant_private_key = "MIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQCXC2LkUCdfkfYBXYeUknEWCv6/5swkRJxZVQ2UxazDtElGuG6nZ8AW8KpTy92JnGokskFSxp7NQ4SoUESAl0MWfWOh/9GqzvgfOf3xzd+neZiHbce5wq0JS5u8+KOtsnkddJYjDHeYpsmBYsjh2NfKGvoCVSRTUoMVy1XI0+n5BYaTLLABpmrkbqFQJ3jmverX/3y5DrNdbuBNjdSuPG41nCMHsEjM6ofDSqg9bCCBQ+iWzJ+8kjlsXtm6lgxxptRec69s0TKjBJUCDENc6PRWwTjqsXzFtAUEIuI+lljvdgG4zuphEJvahjzi/VG7XKYfE68SyWtfBIilmVVv2YCjAgMBAAECggEATGRr3cFUSJfP7hzZx6DRJS7mbTRTpzw0P1IvDkF0AX8bWHNLM8vbcT7DRqJjJ4g+ftTRCQZ/pp0xaNc/7jGSsrs0OujhqBwJjfGMqFFRfqiXJle1nhQB5COjXs36Ko2LiARBMvTJQCGK5K+Lnf5IFWXTcH6TYrjmp40xk+LqARGqe5m0t0VEwOLSHZFl3yuokBBe1XoCoZtJQ+RStWwa9oNFdY4oa4raUeoZlV1x6rq9z7lPjpgsiteGwbsnKO2jFZ/hAgvq1QswmzE0CaDwALIFcUrK0DPpd31jVZ841vBzjmh3pcRWgJz0aIF3X3Nc/PVktZzBY7h8Mu0sFlw+0QKBgQDpyungQrjC44qmGWeS7W7VrZywikZeH30DgQx3ApYA84P8zActFsMaG3JJPKorSUF9Qhi9RgrQ7MZ+RQXeKQLfW7icBvd0fnA73ziPeLpy1sA9N9GdEmaGF5ujBmk4n7ZUDTpb8YeybqJH85RjuJjaCYUDwmmQdvlOxibzCi2d/QKBgQClZE2fMF6uLlaeq0TGsI7dV8rXIr4y8/h7gXfIw+UzHJJ9AcDhjn4CP3+t7MLzuBbd3YmM61b9NmRltMmmyKBneixrahNqEuxxrZZOvTuToy0RPKSOqKOJfoJvxsLw9z52RXYUU6s7h4N31exx34ZkirABh8Fg52FvcmmiNieLHwKBgDzFBLPJRBNMZ/6yvcxgMR4TqZXt60qN7sXZZm8M2gbXRWiRdBARSZdgqP1Gaokj2oT/iESyjx8tXI73zAWqLVf3lG3iFbJPJ0c4x4/rdrNhBMkk2DR20vVp74eZpAIW6aLBaXj6uCX2QfJn6xtcoUaTkOKgRyZI9pa2ROuJqr/VAoGBAKThzPxxZUJyUcpW5fbKl3KUjlRRf5oeXM8LsBYHLVz6FBPphpeWzYqCMVB745LDKJDAxdsl1xAShJ5cUFgkVL00MEpZcsdh3DQsINeYkWdK2qf/c/IAryBobbLvTPKbGbsg3mm/S8rJ+0ehjdmsRDfBh1vPMfrgUOOhBSxAnsVzAoGAcef6auPV0ctI9m7PJB8x/Jq0LnbZlfgKYyADtIxm8fwtUF5uv03U4L7ZctEfW7oyPuf5vRbnpxvq+Ju6Pe4xlcRHidX6XPzokajgRMmay3I601Wvg2ItHD1Rk+YoOUuCBKTjOeY09kK8enyjDKf339C8zc+6DvPw8cZ17bMNHpU=";

    // 支付宝公钥,查看地址：https://open.alipay.com/develop/sandbox/app 对应APPID下的支付宝公钥。
    public static String alipay_public_key = "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAqRRS7HN+VQtWwvBmdBz/zOV0o5pZxum+7GjYS8MNHFow6rGWinNWfr0Bja9RdnNKJ66VDKBh7CuBP4LwbRP1YDAN/u7znvXGKd9gNOthkTYvkdTt0j+4DQL1HsdWFDPgZmQhoaV3MJzcVX7qHFfKR5hC9q3nNEmJU7vYBkx+0SVq27MVDR3Y6jMhRah6cRE2HeSSJg7L8vUoRQp/HEpKxYaSOe5AzVs4eZL5Ll5DX9N2TXUX4yImbgTEnzL0YJzn25RQ0uhSeR5qjNh1m9bafAbifZzJpNDwcyNIOGynrRGQTOz4o4UsC8gkRBM5VQBwyiZiBoz5CdFCfwW+9YpujwIDAQAB";

    // 服务器异步通知页面路径  需http://格式的完整路径，不能加?id=123这类自定义参数，必须外网可以正常访问
    public static String notify_url = "http://b75f36ba.natappfree.cc/alipay/alipayNotify";

    // 页面跳转同步通知页面路径 需http://格式的完整路径，不能加?id=123这类自定义参数，必须外网可以正常访问
    public static String return_url = "http://b75f36ba.natappfree.cc/alipay/alipayReturn";

    // 签名方式
    public static String sign_type = "RSA2";

    // 字符编码格式
    public static String charset = "utf-8";

    // 支付宝沙箱网关
    public static String gatewayUrl = "https://openapi-sandbox.dl.alipaydev.com/gateway.do";

    // 支付宝日志存储地址
    public static String log_path = "D:\\alipayLog";


}